← Back to All APIs

Todos API

Task management with completion status and priorities

Base URL
https://fakeapi.in/api/todos

API Endpoints

GET/api/todos

Get all todos

GET/api/todos/1

Get todo by ID

POST/api/todos

Create todo

PUT/api/todos/1

Update todo

DELETE/api/todos/1

Delete todo

Example Usage

// Get all todos
fetch('https://fakeapi.in/todos')
  .then(response => response.json())
  .then(todos => console.log(todos));

// Create a new todo
fetch('https://fakeapi.in/todos', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'New Task',
    priority: 'medium'
  })
})
.then(response => response.json())
.then(todo => console.log(todo));

Example Response

{
      "id": 1,
      "task": "aufero credo spoliatio cerno",
      "completed": false,
      "dueDate": "2025-10-20T01:47:40.504Z",
      "priority": "Medium",
      "assignedTo": "Marjorie Brekke II"
    }

Quick Actions

Test in Playground

API Status

StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
Todos API - Task Management Documentation | FakeAPI.in